#include <stdio.h>
#include <conio.h>


int main() {
	
	int How , i ;
	int Rate ;
	int Rating[11] ;
	
	printf("How many people are rating ? \n");
	scanf("%d", &How);
	
	
	for (i = 0 ; i < 11 ; i ++ ) {
		
		Rating[i] = 0 ;
	}
	printf("rate in scale of 1 - 10 : \n");
	for ( i = 0 ; i < How ; i ++) {
		
		scanf(" %d", &Rate);
		if (Rate < 1 || Rate > 10)
			printf("bad Rate\n");
		else
			++Rating[Rate];
	}
	
	printf("rating  number of result\n");
	printf("......   ...............");
	for ( i = 0 ; i < 11 ; i ++) {
		
		printf("%4d%14d\n", i , Rating[i]);
		
	}
	

	
	getchar();
	return 0;
	
}

